/*
 * TimeoutBroker.h
 *
 *  Created on: 25/07/2014
 *      Author: migue
 */

#ifndef TIMEOUTBROKER_H_
#define TIMEOUTBROKER_H_

#include "../comun/iMemComp.h"
#include "../comun/iSemaforo.h"

class TimeoutBroker {
public:
	/**
	 * Los numeros de Brokers comienzan en "1".
	 * 1, 2, 3 ....
	 */
	TimeoutBroker(int numBroker = 1);

	static void inicializar();

	static void destruir();

	unsigned int get();

	void set(unsigned int valor);

	virtual ~TimeoutBroker();
private:
	iMemComp* _mc;
	iSemaforo* _mtx;
};

#endif /* TIMEOUTBROKER_H_ */
